<?php
if (!empty ($this->arrPlayer))
{
?>
    <div class="container_item_cauthu">        
        <!-- Thu mon -->
        <?php
        if (!empty ($this->arrK))
        {
        ?>
            <div class="title_content_ls txt_gray dot_bottom">Thủ môn</div>
            <?php
            foreach($this->arrK as $player)
            {
            ?>
                <div class="item_cauthu">
                    <div class="img_item">
                        <a href="<?php $this->Articleurl($player) ?>" title="<?php echo $player['name']; ?>">
                            <img src="<?php $this->config['photo'] . $player['image']; ?>" title="<?php echo $player['name']; ?>" alt="<?php echo $player['name']; ?>" />
                        </a>
                    </div>
                    <div class="infor_item_cauthu">
                        <span class="name_item_cauthu"><?php echo $player['name']; ?></span>
                        <span class="txt_gray"><?php echo $player['birthday']; ?></span>
                    </div>
                    <div class="clear"></div>
                </div>
            <?php
            }
        }
        ?>

        <!-- Hau ve -->
        <?php
        if (!empty ($this->arrK))
        {
        ?>
            <div class="title_content_ls txt_gray dot_bottom">Hậu vệ</div>
            <?php
            foreach($this->arrD as $player)
            {
            ?>
                <div class="item_cauthu">
                    <div class="img_item">
                        <a href="<?php $this->Articleurl($player) ?>" title="<?php echo $player['name']; ?>">
                            <img src="<?php $this->config['photo'] . $player['image']; ?>" title="<?php echo $player['name']; ?>" alt="<?php echo $player['name']; ?>" />
                        </a>
                    </div>
                    <div class="infor_item_cauthu">
                        <span class="name_item_cauthu"><?php echo $player['name']; ?></span>
                        <span class="txt_gray"><?php echo $player['birthday']; ?></span>
                    </div>
                    <div class="clear"></div>
                </div>
            <?php
            }
        }
        ?>

        <!-- Tien Ve -->
        <?php
        if (!empty ($this->arrM))
        {
        ?>
            <div class="title_content_ls txt_gray dot_bottom">Tiền vệ</div>
            <?php
            foreach($this->arrM as $player)
            {
            ?>
                <div class="item_cauthu">
                    <div class="img_item">
                        <a href="<?php $this->Articleurl($player) ?>" title="<?php echo $player['name']; ?>">
                            <img src="<?php $this->config['photo'] . $player['image']; ?>" title="<?php echo $player['name']; ?>" alt="<?php echo $player['name']; ?>" />
                        </a>
                    </div>
                    <div class="infor_item_cauthu">
                        <span class="name_item_cauthu"><?php echo $player['name']; ?></span>
                        <span class="txt_gray"><?php echo $player['birthday']; ?></span>
                    </div>
                    <div class="clear"></div>
                </div>
            <?php
            }
        }
        ?>

        <!-- Hau Cong -->
        <?php
        if (!empty ($this->arrSUB))
        {
        ?>
            <div class="title_content_ls txt_gray dot_bottom">Hậu công</div>
            <?php
            foreach($this->arrSUB as $player)
            {
            ?>
                <div class="item_cauthu">
                    <div class="img_item">
                        <a href="<?php $this->Articleurl($player) ?>" title="<?php echo $player['name']; ?>">
                            <img src="<?php $this->config['photo'] . $player['image']; ?>" title="<?php echo $player['name']; ?>" alt="<?php echo $player['name']; ?>" />
                        </a>
                    </div>
                    <div class="infor_item_cauthu">
                        <span class="name_item_cauthu"><?php echo $player['name']; ?></span>
                        <span class="txt_gray"><?php echo $player['birthday']; ?></span>
                    </div>
                    <div class="clear"></div>
                </div>
            <?php
            }
        }
        ?>

        <!-- Tien dao -->
        <?php
        if (!empty ($this->arrG))
        {
        ?>
            <div class="title_content_ls txt_gray dot_bottom">Tiền đạo</div>
            <?php
            foreach($this->arrG as $player)
            {
            ?>
                <div class="item_cauthu">
                    <div class="img_item">
                        <a href="<?php $this->Articleurl($player) ?>" title="<?php echo $player['name']; ?>">
                            <img src="<?php $this->config['photo'] . $player['image']; ?>" title="<?php echo $player['name']; ?>" alt="<?php echo $player['name']; ?>" />
                        </a>
                    </div>
                    <div class="infor_item_cauthu">
                        <span class="name_item_cauthu"><?php echo $player['name']; ?></span>
                        <span class="txt_gray"><?php echo $player['birthday']; ?></span>
                    </div>
                    <div class="clear"></div>
                </div>
            <?php
            }
        }
        ?>
    </div>
<?php
}
?>